package com.controller.render;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class RenderController {
    @RequestMapping("/index")
    public String index() {
        return "index";
    }


    @RequestMapping("/index2")
    public ModelAndView index2() {

        ModelAndView mav = new ModelAndView();
        mav.setViewName("index");
        return mav;
    }
}
